Oracle PL/SQL Debugger

Oracle PL/SQL Debugger provides step-by-step code debugging for functions, procedures, packages and queries. To launch the debugger, click the Debug button in the designer of the mentioned objects.

You can perform the most commonly used actions for debugging on the toolbar or menu:

Button

Description

Run

Start running code in debug mode. Enter the Input Parameters if necessary. The debugger executes your code until the end of the code or the next breakpoint is reached.

Stop

Stop stepping the code. The execution will stop and cannot resume it.

Step Over

Resume the execution. The current line will be executed. If the line is a procedure or function call, it will bypass the procedure or function. The counter will then move to the next line of code.

Step In

Resume the execution. The current line will be executed. If the line is a procedure or function call, the counter goes to the first statement in the procedure or function. Otherwise, the counter will move to the next line of code.

Step Out

Resume the execution. The remaining part of the code within the current procedure or function will be executed. Subsequently, the counter will jump to the line which is just after the caller of the procedure or function.

Step End

Resume the execution. The counter will jump to the last line of the procedure or function.

The Code pane shows the code of the procedure or function. You can add/remove breakpoints for debugging by clicking Breakpoint in the grey area beside each statement.

The Breakpoints pane displays all the breakpoints.

The Call Stack pane displays a list of procedures and functions as they are called. To jump to a procedure or function, control-click it and select Jump To.

The Local Variables pane displays all local variables and their values. To add a variable to the watch list, control-click it and select Add to Watch List.

The Parameters pane displays the inputted parameters. To add a parameter to the watch list, control-click it and select Add to Watch List.

The Watch List pane displays information about the variables being watched, allowing you to delete or edit watch variables. To edit the value of a watch variable, control-click it and select Set Value. To delete a watch variable, control-click a variable and select Remove Variable.

The Log pane displays the message log when debugging the code and the results after the procedure or function has completed the execution.